/**
 * 
 */
package com.hexacta.hrs.web.util;

import javax.servlet.jsp.PageContext;

import org.displaytag.decorator.DisplaytagColumnDecorator;
import org.displaytag.exception.DecoratorException;
import org.displaytag.properties.MediaTypeEnum;

/**
 * Decorator para un valor boolean
 * 
 * @author vschimpf
 * 
 */
public class BooleanTextDecorator implements DisplaytagColumnDecorator {

    public Object decorate(final Object arg0, final PageContext arg1, final MediaTypeEnum arg2)
            throws DecoratorException {

        return arg0 != null && arg0.equals(Boolean.TRUE) ? "Yes" : "No";
    }
}